home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / jcool01.zip / MAKEFILE < prev    next >
Text File  |  1992-12-01  |  1KB  |  46 lines

  1. # COOL Examples MS-DOS Borland C++ 3.1 Makefile
  2.  
  3. # See cool/makefile for the reasons for using these options
  4. OPTIONS=-O-i -vi- -w-sig -w-amp -w-amb -w-cln $(OPTIONS)
  5.  
  6. COOLLIB=..\cool.lib
  7.  
  8. ALL= \
  9.    ex2_4.obj ex2_7.obj ex2_9.obj ex3_10.obj ex3_4.obj ex3_6.obj \
  10.    ex3_8.obj ex4_7.obj ex4_9.obj ex5_8.obj ex6_10.obj ex6_4.obj ex6_6.obj \
  11.    ex6_8.obj ex7_4.obj ex7_7.obj ex7_9.obj ex8_4.obj ex8_6.obj \
  12.    ex9_5.obj ex9_7.obj ex9_11.obj
  13. #ex3_12.obj  # this is the Range example, see 'todo'
  14.  
  15. # Directory to put .obj files
  16. OBJDIR=.
  17. #.path.obj=$(OBJDIR)
  18. .path.exe=.
  19.  
  20. CC=bcc
  21. LINK=tlink
  22. TLIB=tlib
  23. INCDIR=c:\borlandc\include;\;\cool
  24. LIBDIR=c:\borlandc\lib
  25.  
  26. MODEL=l
  27. !if $(DEBUGGING)
  28. OPTIONS=-v $(OPTIONS)
  29. !else
  30. OPTIONS=-O2 $(OPTIONS)
  31. !endif
  32.  
  33. all: turboc.cfg $(ALL:.obj=.exe)
  34.  
  35. runall.out: turboc.cfg $(ALL:.obj=.exe)
  36.    command /c for %f in (*.exe) do %f > runall.out
  37.  
  38. .obj.exe:
  39.    $(CC) $(OPTIONS) $< $(COOLLIB)
  40.  
  41. .C.obj:
  42.    $(CC) -c -P $(OPTIONS) { $< }
  43.  
  44. turboc.cfg: makefile
  45.    echo -m$(MODEL) -w -d -n$(OBJDIR) -I$(INCDIR) > turboc.cfg
  46.